<template>
  <div>
    <svg :style="{width, height}">
      <use :xlink:href="`${prefix}${name}`" :fill="color"></use>
    </svg>
  </div>
</template>

<script setup lang='ts'>

defineProps({
    prefix:{
        type: String,
        default: '#icon-'
    },
    name: String,
    color: {
        type: String,
        default: '#000'
    },
    width: {
        type: String,
        default: '50px'
    },
    height: {
        type: String,
        default: '50px'
    },
})
</script>
<style  scoped>
</style>